<template>
  <div id="app">
    <!-- 头部 -->
    <header>
      <router-view name="header"/>
    </header>
    <!-- 主体 -->
    <main>
      <router-view/>
    </main>
    <!-- 尾部 -->
    <footer>
      <router-view name="footer"/>
    </footer>
  </div>
</template>

<style lang="less">
@font-face {
  font-family: "iconfont"; /* Project id 3281932 */
  src: url('//at.alicdn.com/t/font_3281932_9if1tt04uy.woff2?t=1648390423010') format('woff2'),
       url('//at.alicdn.com/t/font_3281932_9if1tt04uy.woff?t=1648390423010') format('woff'),
       url('//at.alicdn.com/t/font_3281932_9if1tt04uy.ttf?t=1648390423010') format('truetype');
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

html, body {
  height: 100%;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;

  main {
    flex: 1;
    overflow-x: hidden;
  }
}
</style>
